package edu.tsinghua.ddb.beans;

import java.io.Serializable;

public class Predicate implements Serializable{
	private static final long serialVersionUID = 1935743634293455395L;

	private String raw;

	private String target;
	private String op;
	private Object value;

	public Predicate(String raw) {
		this.raw = raw;
	}

	@Override
	public String toString() {
//		return target + " " + op + " " + value.toString();
		return raw;
	}

	/**
	 * @return the target
	 */
	public String getTarget() {
		return target;
	}

	/**
	 * @param target
	 *            the target to set
	 */
	public void setTarget(String target) {
		this.target = target;
	}

	/**
	 * @return the op
	 */
	public String getOp() {
		return op;
	}

	/**
	 * @param op
	 *            the op to set
	 */
	public void setOp(String op) {
		this.op = op;
	}

	/**
	 * @return the value
	 */
	public Object getValue() {
		return value;
	}

	/**
	 * @param value
	 *            the value to set
	 */
	public void setValue(Object value) {
		this.value = value;
	}
}
